package com.tjmc.tiomscore.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TiBusiEsiExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TiBusiEsiExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTiBusiIdIsNull() {
            addCriterion("ti_busi_id is null");
            return (Criteria) this;
        }

        public Criteria andTiBusiIdIsNotNull() {
            addCriterion("ti_busi_id is not null");
            return (Criteria) this;
        }

        public Criteria andTiBusiIdEqualTo(Long value) {
            addCriterion("ti_busi_id =", value, "tiBusiId");
            return (Criteria) this;
        }

        public Criteria andTiBusiIdNotEqualTo(Long value) {
            addCriterion("ti_busi_id <>", value, "tiBusiId");
            return (Criteria) this;
        }

        public Criteria andTiBusiIdGreaterThan(Long value) {
            addCriterion("ti_busi_id >", value, "tiBusiId");
            return (Criteria) this;
        }

        public Criteria andTiBusiIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ti_busi_id >=", value, "tiBusiId");
            return (Criteria) this;
        }

        public Criteria andTiBusiIdLessThan(Long value) {
            addCriterion("ti_busi_id <", value, "tiBusiId");
            return (Criteria) this;
        }

        public Criteria andTiBusiIdLessThanOrEqualTo(Long value) {
            addCriterion("ti_busi_id <=", value, "tiBusiId");
            return (Criteria) this;
        }

        public Criteria andTiBusiIdIn(List<Long> values) {
            addCriterion("ti_busi_id in", values, "tiBusiId");
            return (Criteria) this;
        }

        public Criteria andTiBusiIdNotIn(List<Long> values) {
            addCriterion("ti_busi_id not in", values, "tiBusiId");
            return (Criteria) this;
        }

        public Criteria andTiBusiIdBetween(Long value1, Long value2) {
            addCriterion("ti_busi_id between", value1, value2, "tiBusiId");
            return (Criteria) this;
        }

        public Criteria andTiBusiIdNotBetween(Long value1, Long value2) {
            addCriterion("ti_busi_id not between", value1, value2, "tiBusiId");
            return (Criteria) this;
        }

        public Criteria andServicermuidIsNull() {
            addCriterion("servicermuid is null");
            return (Criteria) this;
        }

        public Criteria andServicermuidIsNotNull() {
            addCriterion("servicermuid is not null");
            return (Criteria) this;
        }

        public Criteria andServicermuidEqualTo(String value) {
            addCriterion("servicermuid =", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidNotEqualTo(String value) {
            addCriterion("servicermuid <>", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidGreaterThan(String value) {
            addCriterion("servicermuid >", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidGreaterThanOrEqualTo(String value) {
            addCriterion("servicermuid >=", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidLessThan(String value) {
            addCriterion("servicermuid <", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidLessThanOrEqualTo(String value) {
            addCriterion("servicermuid <=", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidLike(String value) {
            addCriterion("servicermuid like", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidNotLike(String value) {
            addCriterion("servicermuid not like", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidIn(List<String> values) {
            addCriterion("servicermuid in", values, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidNotIn(List<String> values) {
            addCriterion("servicermuid not in", values, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidBetween(String value1, String value2) {
            addCriterion("servicermuid between", value1, value2, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidNotBetween(String value1, String value2) {
            addCriterion("servicermuid not between", value1, value2, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidIsNull() {
            addCriterion("pwrmuid is null");
            return (Criteria) this;
        }

        public Criteria andPwrmuidIsNotNull() {
            addCriterion("pwrmuid is not null");
            return (Criteria) this;
        }

        public Criteria andPwrmuidEqualTo(String value) {
            addCriterion("pwrmuid =", value, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidNotEqualTo(String value) {
            addCriterion("pwrmuid <>", value, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidGreaterThan(String value) {
            addCriterion("pwrmuid >", value, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidGreaterThanOrEqualTo(String value) {
            addCriterion("pwrmuid >=", value, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidLessThan(String value) {
            addCriterion("pwrmuid <", value, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidLessThanOrEqualTo(String value) {
            addCriterion("pwrmuid <=", value, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidLike(String value) {
            addCriterion("pwrmuid like", value, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidNotLike(String value) {
            addCriterion("pwrmuid not like", value, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidIn(List<String> values) {
            addCriterion("pwrmuid in", values, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidNotIn(List<String> values) {
            addCriterion("pwrmuid not in", values, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidBetween(String value1, String value2) {
            addCriterion("pwrmuid between", value1, value2, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidNotBetween(String value1, String value2) {
            addCriterion("pwrmuid not between", value1, value2, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andTiPswIdIsNull() {
            addCriterion("ti_psw_id is null");
            return (Criteria) this;
        }

        public Criteria andTiPswIdIsNotNull() {
            addCriterion("ti_psw_id is not null");
            return (Criteria) this;
        }

        public Criteria andTiPswIdEqualTo(Long value) {
            addCriterion("ti_psw_id =", value, "tiPswId");
            return (Criteria) this;
        }

        public Criteria andTiPswIdNotEqualTo(Long value) {
            addCriterion("ti_psw_id <>", value, "tiPswId");
            return (Criteria) this;
        }

        public Criteria andTiPswIdGreaterThan(Long value) {
            addCriterion("ti_psw_id >", value, "tiPswId");
            return (Criteria) this;
        }

        public Criteria andTiPswIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ti_psw_id >=", value, "tiPswId");
            return (Criteria) this;
        }

        public Criteria andTiPswIdLessThan(Long value) {
            addCriterion("ti_psw_id <", value, "tiPswId");
            return (Criteria) this;
        }

        public Criteria andTiPswIdLessThanOrEqualTo(Long value) {
            addCriterion("ti_psw_id <=", value, "tiPswId");
            return (Criteria) this;
        }

        public Criteria andTiPswIdIn(List<Long> values) {
            addCriterion("ti_psw_id in", values, "tiPswId");
            return (Criteria) this;
        }

        public Criteria andTiPswIdNotIn(List<Long> values) {
            addCriterion("ti_psw_id not in", values, "tiPswId");
            return (Criteria) this;
        }

        public Criteria andTiPswIdBetween(Long value1, Long value2) {
            addCriterion("ti_psw_id between", value1, value2, "tiPswId");
            return (Criteria) this;
        }

        public Criteria andTiPswIdNotBetween(Long value1, Long value2) {
            addCriterion("ti_psw_id not between", value1, value2, "tiPswId");
            return (Criteria) this;
        }

        public Criteria andTiPswAnelIdIsNull() {
            addCriterion("ti_psw_anel_id is null");
            return (Criteria) this;
        }

        public Criteria andTiPswAnelIdIsNotNull() {
            addCriterion("ti_psw_anel_id is not null");
            return (Criteria) this;
        }

        public Criteria andTiPswAnelIdEqualTo(Long value) {
            addCriterion("ti_psw_anel_id =", value, "tiPswAnelId");
            return (Criteria) this;
        }

        public Criteria andTiPswAnelIdNotEqualTo(Long value) {
            addCriterion("ti_psw_anel_id <>", value, "tiPswAnelId");
            return (Criteria) this;
        }

        public Criteria andTiPswAnelIdGreaterThan(Long value) {
            addCriterion("ti_psw_anel_id >", value, "tiPswAnelId");
            return (Criteria) this;
        }

        public Criteria andTiPswAnelIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ti_psw_anel_id >=", value, "tiPswAnelId");
            return (Criteria) this;
        }

        public Criteria andTiPswAnelIdLessThan(Long value) {
            addCriterion("ti_psw_anel_id <", value, "tiPswAnelId");
            return (Criteria) this;
        }

        public Criteria andTiPswAnelIdLessThanOrEqualTo(Long value) {
            addCriterion("ti_psw_anel_id <=", value, "tiPswAnelId");
            return (Criteria) this;
        }

        public Criteria andTiPswAnelIdIn(List<Long> values) {
            addCriterion("ti_psw_anel_id in", values, "tiPswAnelId");
            return (Criteria) this;
        }

        public Criteria andTiPswAnelIdNotIn(List<Long> values) {
            addCriterion("ti_psw_anel_id not in", values, "tiPswAnelId");
            return (Criteria) this;
        }

        public Criteria andTiPswAnelIdBetween(Long value1, Long value2) {
            addCriterion("ti_psw_anel_id between", value1, value2, "tiPswAnelId");
            return (Criteria) this;
        }

        public Criteria andTiPswAnelIdNotBetween(Long value1, Long value2) {
            addCriterion("ti_psw_anel_id not between", value1, value2, "tiPswAnelId");
            return (Criteria) this;
        }

        public Criteria andTiPswZnelIdIsNull() {
            addCriterion("ti_psw_znel_id is null");
            return (Criteria) this;
        }

        public Criteria andTiPswZnelIdIsNotNull() {
            addCriterion("ti_psw_znel_id is not null");
            return (Criteria) this;
        }

        public Criteria andTiPswZnelIdEqualTo(Long value) {
            addCriterion("ti_psw_znel_id =", value, "tiPswZnelId");
            return (Criteria) this;
        }

        public Criteria andTiPswZnelIdNotEqualTo(Long value) {
            addCriterion("ti_psw_znel_id <>", value, "tiPswZnelId");
            return (Criteria) this;
        }

        public Criteria andTiPswZnelIdGreaterThan(Long value) {
            addCriterion("ti_psw_znel_id >", value, "tiPswZnelId");
            return (Criteria) this;
        }

        public Criteria andTiPswZnelIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ti_psw_znel_id >=", value, "tiPswZnelId");
            return (Criteria) this;
        }

        public Criteria andTiPswZnelIdLessThan(Long value) {
            addCriterion("ti_psw_znel_id <", value, "tiPswZnelId");
            return (Criteria) this;
        }

        public Criteria andTiPswZnelIdLessThanOrEqualTo(Long value) {
            addCriterion("ti_psw_znel_id <=", value, "tiPswZnelId");
            return (Criteria) this;
        }

        public Criteria andTiPswZnelIdIn(List<Long> values) {
            addCriterion("ti_psw_znel_id in", values, "tiPswZnelId");
            return (Criteria) this;
        }

        public Criteria andTiPswZnelIdNotIn(List<Long> values) {
            addCriterion("ti_psw_znel_id not in", values, "tiPswZnelId");
            return (Criteria) this;
        }

        public Criteria andTiPswZnelIdBetween(Long value1, Long value2) {
            addCriterion("ti_psw_znel_id between", value1, value2, "tiPswZnelId");
            return (Criteria) this;
        }

        public Criteria andTiPswZnelIdNotBetween(Long value1, Long value2) {
            addCriterion("ti_psw_znel_id not between", value1, value2, "tiPswZnelId");
            return (Criteria) this;
        }

        public Criteria andRoleIsNull() {
            addCriterion("role is null");
            return (Criteria) this;
        }

        public Criteria andRoleIsNotNull() {
            addCriterion("role is not null");
            return (Criteria) this;
        }

        public Criteria andRoleEqualTo(String value) {
            addCriterion("role =", value, "role");
            return (Criteria) this;
        }

        public Criteria andRoleNotEqualTo(String value) {
            addCriterion("role <>", value, "role");
            return (Criteria) this;
        }

        public Criteria andRoleGreaterThan(String value) {
            addCriterion("role >", value, "role");
            return (Criteria) this;
        }

        public Criteria andRoleGreaterThanOrEqualTo(String value) {
            addCriterion("role >=", value, "role");
            return (Criteria) this;
        }

        public Criteria andRoleLessThan(String value) {
            addCriterion("role <", value, "role");
            return (Criteria) this;
        }

        public Criteria andRoleLessThanOrEqualTo(String value) {
            addCriterion("role <=", value, "role");
            return (Criteria) this;
        }

        public Criteria andRoleLike(String value) {
            addCriterion("role like", value, "role");
            return (Criteria) this;
        }

        public Criteria andRoleNotLike(String value) {
            addCriterion("role not like", value, "role");
            return (Criteria) this;
        }

        public Criteria andRoleIn(List<String> values) {
            addCriterion("role in", values, "role");
            return (Criteria) this;
        }

        public Criteria andRoleNotIn(List<String> values) {
            addCriterion("role not in", values, "role");
            return (Criteria) this;
        }

        public Criteria andRoleBetween(String value1, String value2) {
            addCriterion("role between", value1, value2, "role");
            return (Criteria) this;
        }

        public Criteria andRoleNotBetween(String value1, String value2) {
            addCriterion("role not between", value1, value2, "role");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiEsiIdIsNull() {
            addCriterion("tran_ptn_busi_esi_id is null");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiEsiIdIsNotNull() {
            addCriterion("tran_ptn_busi_esi_id is not null");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiEsiIdEqualTo(Long value) {
            addCriterion("tran_ptn_busi_esi_id =", value, "tranPtnBusiEsiId");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiEsiIdNotEqualTo(Long value) {
            addCriterion("tran_ptn_busi_esi_id <>", value, "tranPtnBusiEsiId");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiEsiIdGreaterThan(Long value) {
            addCriterion("tran_ptn_busi_esi_id >", value, "tranPtnBusiEsiId");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiEsiIdGreaterThanOrEqualTo(Long value) {
            addCriterion("tran_ptn_busi_esi_id >=", value, "tranPtnBusiEsiId");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiEsiIdLessThan(Long value) {
            addCriterion("tran_ptn_busi_esi_id <", value, "tranPtnBusiEsiId");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiEsiIdLessThanOrEqualTo(Long value) {
            addCriterion("tran_ptn_busi_esi_id <=", value, "tranPtnBusiEsiId");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiEsiIdIn(List<Long> values) {
            addCriterion("tran_ptn_busi_esi_id in", values, "tranPtnBusiEsiId");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiEsiIdNotIn(List<Long> values) {
            addCriterion("tran_ptn_busi_esi_id not in", values, "tranPtnBusiEsiId");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiEsiIdBetween(Long value1, Long value2) {
            addCriterion("tran_ptn_busi_esi_id between", value1, value2, "tranPtnBusiEsiId");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiEsiIdNotBetween(Long value1, Long value2) {
            addCriterion("tran_ptn_busi_esi_id not between", value1, value2, "tranPtnBusiEsiId");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("updateTime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("updateTime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("updateTime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updateTime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("updateTime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("updateTime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("updateTime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("updateTime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("updateTime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("updateTime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}